import type { Metadata } from "next";
import "./globals.css";
import Header from "@/components/Header";
import Footer from "@/components/Footer";
import { ThemeProvider } from "@/components/ThemeProvider";
import { ZCOOL_XiaoWei } from "next/font/google";

const zcoolXiaoWei = ZCOOL_XiaoWei({
  weight: "400",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Reindeer の Room",
  description: "使用 NextJS ThreeJS 易于 SEO 的博客系统",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="zh" suppressHydrationWarning data-scroll-behavior="smooth">
      <body
        className={`${zcoolXiaoWei.className} bg-primary-foreground  text-primary min-h-[100dvh]`}
      >
        <ThemeProvider
          defaultTheme="light"
          enableColorScheme
          themes={["light", "dark-classic"]}
        >
          <Header />
          <div className="pt-[60px]">{children}</div>
          <Footer />
        </ThemeProvider>
      </body>
    </html>
  );
}
